package com.naiterui.ehp.bs.pharmacist.repository.mysql;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.pharmacist.entity.PharmacistMedicationRecom;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;


/**
 * @Description 处方数据
 * @Author gongbaoqiang
 * @Date 2019/12/5 1:27 PM
 */
@Repository
public interface MedicationRecomRepository extends BaseJpaRepository<PharmacistMedicationRecom, Long> {

    /**
     * 按状态分页查询
     *
     * @param status
     * @param pageable
     *
     * @return
     */
    Page<PharmacistMedicationRecom> findByStatus(Integer status, Pageable pageable);

}
